package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.BaseBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 验证旧手机号 BASE
 */

public class AuthenticationBase {

    public interface IView {

        void sendSmsCodeSuccessMsg(String s, BaseBean addDABean);

        void verifySmsCodeSuccessMsg(String s, BaseBean deleteDABean);

        void showErrorMsg(String s);
    }

    public interface IPresenter {

        /**
         * 发送验证码核对旧手机号
         */
        void deliverSendSmsCodeData(RequestBody requestBody);

        /**
         * 验证验证码是否正确
         */
        void deliverVerifySmsCodeData(RequestBody requestBody);
    }

    public interface IModel {

        /**
         * 发送验证码核对旧手机号
         */
        Subscription getSendSmsCodeData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

        /**
         * 验证验证码是否正确
         */
        Subscription getVerifySmsCodeData(RequestBody requestBody, ResponseCallback<BaseBean> callback);
    }

}
